[SUBROUTINE]
version = 1.14
icon = slot.png
name = _("Slot/oval 1 point")
type = slot
help = _("<b>Creates a Slot from a single point</b>&#10;Reference point can be center of slot or of one end")
order = act pv h1 x ref y h5 w l rot h2 opt dir

[PARAM_ACT]
name = _("Active")
icon = enable.png
type = bool
value = 1

[PARAM_PV]
name = _("Show design")
icon = glasses.png
type = bool
value = 1

[PARAM_H1]
name = _("Coords")
type = sub-header

[PARAM_H5]
name = _("Size, rotation")
type = sub-header

[PARAM_REF]
name = _("X axis align")
icon = ref-slot-ctr.png
header = h1
type = combo
options = _("End=0:Center of slot=1")
tool_tip = _("X,Y center of slot or left end")
value = 0

[PARAM_X]
name = _("X")
header = h1
type = float
icon = x.png
tool_tip = _("X Center")
value = 0
metric_value = 0.0

[PARAM_Y]
name = _("Y")
header = h1
type = float
icon = y.png
tool_tip = _("Y center")
value = 0
metric_value = 0.0

[PARAM_W]
name = _("Width")
header = h5
type = float
icon = oval-d.png
tool_tip = _("Width of slot")
value = 0.5
metric_value = 12
minimum_value = 0
not_allowed = 0

[PARAM_L]
name = _("Effective length")
header = h5
type = float
icon = oval-w.png
tool_tip = _("Length between center of arcs")
value = 1
metric_value = 25
minimum_value = 0
not_allowed = 0

[PARAM_ROT]
name = _("Rotation")
header = h5
type = float
digits = 2
icon = angle.png
tool_tip = _("Angle rotated")
value = 0
suffix = &#176;

[PARAM_H2]
name = _("Cutting")
type = sub-header

[PARAM_OPT]
name = _("Option")
header = h2
type = combo
options = _("Inside=0:On the line=2:Outside=3")
icon = g4x.png
tool_tip = _("Select tool path")
value = 0

[PARAM_DIR]
name = _("Direction")
header = h2
type = combo
options = _("Clockwise=2:Counter-Clockwise=3")
icon = cw-ccw.png
tool_tip = _("Direction of tool path")
value = 3

[DEFINITIONS]
content =
;	<eval>self.include_once(file name here)</eval>

[CALL]
content =
	(begin #sub_name)
	(slot from center or end author: Fernand Veilleux)
	o<#self_id_active> if [#param_act] (if active)
		#<l#ID>   = [#param_l]
		#<w#ID>   = [#param_w]
		
		o<select> CALL [33] [#param_ref] [#<l#ID> / 2] [0]
		
		o<rectangle> CALL [#param_x] [#param_y] [#<l#ID> + #<w#ID>] [#<w#ID>] [#param_rot] [#33] [0] [1] [#<w#ID> / 2] [#param_opt] [#param_dir] [#<pl_cut_start>] [#<surface>] [#<bottom>] [#param_pv]
	o<#self_id_active> endif
	(end #sub_name)
